package com.chen.seckill.service;

import com.chen.seckill.pojo.SeckillOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.seckill.pojo.User;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chenyuan
 * @since 2021-07-21
 */
public interface ISeckillOrderService extends IService<SeckillOrder> {

    /**
     * 获取秒杀状态结果
     *
     * @param user
     * @param goodsId
     * @return orderId代表秒杀成功，-1代表秒杀失败，0代表排队中
     */
    Long getResult(User user,Long goodsId);


}
